package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.WarehouseDao;
import com.ericom.model.Warehouse;
@Repository("warehouseDao")
public class WarehouseDaoHibernate extends GenericDaoHibernate<Warehouse, Long> implements
		WarehouseDao {

	public WarehouseDaoHibernate(){
		super(Warehouse.class);
	}
		public List<Warehouse> findByName(String name) {
	
		return this.getHibernateTemplate().find("from Warehouse where name=?",name);
	}

}
